Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest Nx #311

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Update to latest Nx #311

merged 2 commits into from
Nov 19, 2024

Conversation

josevalim
Copy link
Contributor

Nx defaults to 32 precision everywhere, hence the changes.

Closes #310.

while {final_samples, key, rejects, i = Nx.s64(0)}, i < elem(shape, 0) do
{samples, key} = Nx.Random.randint(key, 0, opts[:maxval], shape: {elem(shape, 1)})
while {final_samples, key, rejects, i = Nx.u32(0)}, i < elem(shape, 0) do
# TODO: See if we can relax the samples to u32
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@msluszniak I kept the type here as s64 because if we change the type, we change the samples, which changes the result of the tests. Can you please tell me if you copied the tests from Python's trimap? Because if not, it is ok for us to change the values here and then update the tests. :)

@josevalim
Copy link
Contributor Author

I will merge this. If you folks have feedback, I will tackle them later.

@josevalim josevalim merged commit 58ddd65 into main Nov 19, 2024
2 checks passed
@josevalim
Copy link
Contributor Author

💚 💙 💜 💛 ❤️

@josevalim josevalim deleted the jv-latest-nx branch November 19, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug Scholar.Manifold.MDS.fit
1 participant